package com.example.base.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author X.I.O
 * @since 2024-02-21
 */

@Data
@ApiModel(description = "")
public class SysTableVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    private Integer id;
    /**
    * 名称
    */
    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不得为空")
    private String tableName;
    /**
    * 标识
    */
    @NotBlank(message = "表名标识不得为空")
    @ApiModelProperty(value = "标识")
    private String tableNo;
    /**
    * 关联的表名
    */
    @ApiModelProperty(value = "关联的表名")
    @NotBlank(message = "关联的表名不得为空")
    private String tableTable;
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    private Date createtime;
    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    private Date updatetime;

    @NotNull(message = "不得没有表格列")
    @ApiModelProperty(value = "表格列")
    private List<SysTableColumnVo> columns;
        

}
